<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>顾客诊断信息管理</title>
	<meta name="decorator" content="default"/>
	<style type="text/css">
		#contentTable{margin-left: 0px;}
	</style>
	<script type="text/javascript">
		$(document).ready(function() {			
			$("#contentTable tbody tr").click(function(){
				$("#contentTable tbody tr").removeClass("select_active");
				$(this).addClass("select_active");
				var url = "${ctx}/expert/customerSolution/?customerExamId="+this.id;
				window.open(url,"customerSolution");
				$("body").height($('#right', parent.document).height()-5);
			});
			$("body").height($('#right', parent.document).height()-5);
			$("#contentTable tbody tr:first-child").click();
		});
		
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body id="body">
<div style="overflow:auto;">
	<c:set var="target" scope="session" value="customerList"></c:set>
	<c:set var="searchCustomerName" scope="session" value="${searchName}"></c:set>
	<form:form id="searchForm" modelAttribute="customerExam" action="${ctx}/expert/customerExam/customerList" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<label>按顾客姓名查询 ：</label>
		<input type="text" id="searchName" name="searchName" value="${searchName}" class="input-medium"/>
		&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
	</form:form>
	<tags:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered span5">
		<thead><tr><th>顾客姓名</th><th>诊断时间</th><th>美容师</th></tr></thead>
		<tbody>
		<c:forEach items="${page.list}" var="customerExam">
			<tr id="${customerExam.id}">
				<td>${customerExam.customer.name}</td>
				<td>${fns:formatDate(customerExam.exam_time, "yyyy-MM-dd")}</td>
				<td>${customerExam.employee.name}</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
	<div id="bottom" style="overflow:auto;">
		<iframe id="customerSolution" name="customerSolution" src="about:blank"  style="overflow:auto;"
			scrolling="yes" frameborder="no" width="100%" height="100%"></iframe>
	</div>
</div>
</body>
</html>
